/*
 * Main.cpp
 *
 *  Created on: 27 sept. 2012
 *      Author: the
 */
#include "FTP.h"


int main(int argc, char **argv)
{
	char *host = new char[15];
	char *port = new char [5];

	printf( "IP address de Seveur :");
	gets(host);

	printf( "Port de Seveur:");
	gets( port);

	if (!host)
		host = (char *)"";
	if (!port)
		port = (char *)"12358";

	int sock = connectToServer(host, port);
	if(sock == -1)
	{
		printf("Les parametres de Seveur ne sont pas corrects ");
	}

	shutdown(sock, 2);
	close(sock);
	return (EXIT_SUCCESS);

}
